package cn.jhz.learn.blog.dao.account;

import cn.jhz.learn.blog.po.account.AccountUser;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

@Repository
public interface AccountUserMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(AccountUser record);

    int insertSelective(AccountUser record);

    AccountUser selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(AccountUser record);

    int updateByPrimaryKey(AccountUser record);

    /* 自定义 */
    AccountUser selectByLoginId(@Param("login_id") String loginId);

    Integer countLoginId(@Param("login_id") String loginId);

    Integer countEmail(@Param("email") String email);
}